adding build script, which starts the server, runs the tests for both nodejs and browser environments