Adjust JSHint configuration and remove useless code
Optmize and minimize core code