Embed ruby in JS to add connection between locations to show route