Sure, here's a basic implementation of Space Wars 1 game using JavaScript and HTML:
To use this game, simply copy the above code into an HTML file (e.g., `spacewars.html`), and open the file in a web browser. The game will start automatically, and you can control the spaceship using the left and right arrow keys. Avoid colliding with the enemy object and try to score as much as possible before the game ends.
Please note that this is a very basic implementation, and there's a lot more you can do to enhance the game, such as adding sound effects, different levels, power-ups, and more.