Location and entry maps

used MapBox Api to generate map on location show page.  
--map displays marker for each entry near the map center.
--javascript is in the html file.  I was having trouble getting the ruby variables to work in a seperate js.erb file.  Help would be appreciated.
Thanks for the tips.  I made the location model make the coordinate area (since that's where the parameters are coming from).  Then the Entry method takes the coordinate area object as an argument, as you suggested.