Update FunctionWPScriptRef