Added initial unit tests
Added unit tests for client/js/area.js
Moved test boilerplate code into a separate file