A graphics engine for HTML5 and Javascript games