Refactored to use V8 bindings for onLoad callback