Convert tabs to spaces in main.js

There's a mix of both here