Fixed build script to rm js files correctly