Javascript treats '0' different to 0. '0' is a string, and doesn't seem to