JavaScript simple shooter