Added if(hourlyWage === "")

With
document.write
console.log