Removed a bad console log.
When embedded, logging the criteria object seemed to be causing issues. Probably because of its reference to a non-existent dom element.