[Refactoring] JS code style
Removed unused code
Removed unused