If Else Question For Javascript Coders