Issue #911 - fix media upload js files not always available on cpt