fix for in-url javascript