meilib.js improvements