cleaned up magic-lantern.js a bit, removed some console.logs and redundant comments