MOD: minor mod on the js