Flixel JS is a port to JavaScript of Flixel AS3, it has also some improvements to increase performance.