Update build script: remove optimized js from source tree; add a new build folder that contains the tempalte;