see https://github.com/GameJs/gamejs/issues/88#issuecomment-90959633
see #88 (comment)