moved js tags from bottom of body back to inside head because of turbolinks issues