move map javascript to js.erb and change assets links