Updated app.php

Changed the code to show username and picture of user after logging in from Facebook.
Added some additional comments to explain what the JavaScript is doing?
The code however has problem somewhere. The timer hides as soon as we click on timer icon.This problem was not present earlier so some changes need to be reverted