Issue #366 fix prototype polution from app.js refactor