Update script.js

Add reg filed to table.