Update appcore.js

Direct checking for compress option