Javascript Json Array Adding Exponents With Variables