Update main.js

Changed Tab completion.