Javascript wrapping for getting the EditMode within CQ.