Added ability to use an optional data callback with custom_js