Update magLite.js