Fixed Shapewrapper JS being embedded directly in HTML and interacting incorrectly with turbolinks