write javascript and erb code to put markers on the map