updated script.js file

updated script with an input section.  Also fixed the calcCost function
to reflect the variables as floats.