Fixed warning reported by JSHint