Add baseUrl

* Add baseUrl to specify the root
* Migrate to newer version of scalejs
* Add unit tests