added fix for turbolinks javascript problem