fix npm build-js and remove-images scripts