Update js to work with analytics and Turbolinks