Add compileTests and compileJsTests tasks
Remove rootPath argument from build() function while waiting for #2