Fix: javascript calculation of unit price from margin rate was broken.