reformated app.js
formating and commenting
removed unused stuff
fixed post count and refactored stuff0