fixed js bug: $(document).ready not working with turbolink