Ended up solving this by accident by using the Self-Executing Anonymous Functions pattern, as explained in this article.
I assume there must have been a naming conflict when I opened facebox, which was resolved once I put all my functions and members in their own namespace (using the aforementioned pattern).