Fix rebuild

might be a good idea to setup jshint here