JavaScript and nodeJS 2d shooter