Update index.js.erb for AJAX call fix

Updated.