fix reference undeclared variables in mampf.js
fixed backend integration