start refactor app.js (del useless var)