register external javascript