fix javascript anchor tags