Implemented suggestions by JSHint

Code review : Cyrus Venn Casada