JS additions

Added click on header to sort and reorder the stocks into a new
variable finalStocks.