Bargames is a project mainly written in JavaScript, it's free.
Score and win tracking for various bar games