unit tests for game.js and shared.js

Used tiny test for testing game.js and shared.js
Merge pull request #2 from mangos-to-mangos/game_unit_tests

unit tests for game.js and shared.js