refactoring in progress....
remove unnecessary code
moving script tag at the bottom of the page: