optimizational changes mostly: amount input js, changed all inputs to type TEXT for native maxlength control, modified some JS functions