Fix prepare_js scripts