quantity is calculating
reset button
rearanged code
moved js to its own file