Js Conditional Statements progress