fix turbolinking javascript issue