Update main.js: a test for 'add reg, num'