Dependent Variable Math Function In Javascript Programming Questions