Passing app.js in class and instantiate it