Add JS to permalink.