first working implementation

mmm.js is probably not a very good name for a file, spell it out, it'll save you a lot of headaches later.