magic carpet js caches markup