JSHint options added and errors fixed