Added javascript unit tests to build script