Refactored JS code, better modularization.