fixed locals variables and their use in ajax js create.js.erb