fiddled with metroidman.js