GR: fixed js compatibility with turbolinks