Trying to get the js to generate the html with erb

The addPlayer.js file is having trubel accessing variables form other
controller actions.