fixing javascript addresses