clean/build/deploy script in JS