allow web view delegate to configure JS script objects