Common modules to speed up html5 canvas game development