updated mega.js for compatibility with firefox