refactoring refinery.js.erb and added google analytics for turbolinks