fixed the issues I was having with [object Object] has no method assign from the _resolve method. checking typeof function === "undefined" and other typeofs. also made the _log method more sensible so it works even when console is or isnt defined, instead of only when it is