Refactored javascript charting logic, current price and change now displays