Why not call successFn directly? If the caller needs to bind in the "this" context, they can do so with fn.bind(). Doing it this way would have unintended consequences if window.webkitStorageInfo.requestQuota was called by another script on the page, since they would then inherit the "this" context of this plugin, instead of their own.