Changed build directory to be compliant with gitlab

Modified watcher related code to pass jshint check