JS additions

Added click on header to sort and reorder the stocks into a new
variable finalStocks.
Merge branch 'master' into gh-pages