Reverted changes from last commit. Minor code cleanup.
Reverted changes from last commit. Minor code cleanup.

chessmasterhong/chessmasterhong.github.io-angularjs,chessmasterhong/chessmasterhong.github.io-angularjs