updated javascript files to use document.ready to work with turbolinks