Minor formatting
Removed unused object
Splitted source code into multiple js files