adding function newgenrescontroller to newgenrescontroller.js + controller reference in app.js and index.html