Create xm.safe.js