[master] update js to allow leading zeros