1. reodered some specs. 2. applied JSHint.