separated profit calcs from stock quote js. Added metric page