added check on whether mmcore BEFORE jQuery or AFTER