Moved JS build into BeforeBuild target