Registers a client script reference into the page with the option to specify the script location in the page