[master] update js to allow for leading zeros