Corrected JSHint errors