Changing http to https in application.html.erb for js