Added if(cost + totalWage >= profit)

Still need to add
document.write
console.log