Adding Function 2 - Game Borders Calculator

Creating a new JavaScript file in my game so that I can code the game
borders calculator to calculate the borders of the game screen so both
spaceship and aliens won't go out of the screen during the game.