Salary Estimator (Javascript)