fix jquery ready function to work with turbolinks