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