How To Use If Function In Javascript