Recreate the classic Asteroids game using JavaScript, focusing on game mechanics and coding techniques.