Fix to minify and copy js in blocks