Removed inline scripting and external references to css and js libraries.
Refactored code.