Use same volume in JS as in Python