[#865390] Ensure MakeAPI is working when included client side and node/server side

https://bugzilla.mozilla.org/show_bug.cgi?id=865390