start of mae.js