Increased JSHint coverage. Fixed lint issues in lib files.