Avoid hard coding in the JS & CSS

* JS: restructure JS files, use custom HTML attributes instead of #id 
* CSS: remove #id tags 
* Fixed animation issue