Javascript Test to Compute Values