Add addJavaScriptResourceOnEvent function to OVVAsset for easier 3rd parties integration