fix javascript url