I'm no expert on JS and I try to be humble (once I criticized the triple equality sign and got my fish fried really badly, hehe) so I'd need to verify if the following is a valid JS code at all. It's missing a semicolon and, at first, it looks weirdly but who knows - maybe it's an OK expression anyway and I'm just ignorant.
if (l != "1" || e == "" || g == "") {
e = null;
g = null
}
I suspect that it's faulty to the to last assignment to g because I know it's erroneous in regard to the equality signs. But I'd like to have it on record before I mention it to others.