I'm not sure but the parsing step probably takes care of problems with upper/lower case.
If it doesn't it should.
This line could be replaced with the eye-friendlier:

    else if (action == "DELETE")