you should use '===' instead of '=='. This avoids issue with javascript transtyping