(init) finishing up app.js module

Checking auth (line 43) still needs work.