Light Bending HTML5 Canvas Game