Update magLite.js

namespace remove this from inner func