Moving the scripts from head section to the bottom of body section
Redoing the notification and js code for better manageability.