A simple 2D javascript sprite engine for the canvas