Passing sinatra local to script function. Map does not render