add function to let user customise source of content script.