How To Use If Statement In Javascript