[js] exp_power needs to return a signed number