Fixed primer assert ranges in js for unallowed regions