a miniature game library in Javascript