copy pomelo.js code to lord.js