javascript is the worst. it's so inconsistent and full of weird quirks. i mean, who thought it was a good idea to have nan !== nan?