Using the JavaScript if Statement