fix variable already defined error in index_script.js