Use MODX.loadPage instead of direct location changes; closes #22