patching runtime.js