Make usage of main.js more clear, refs #4