update package.json and uglify script code in head