Add main.js
Merge branch 'jgdev' of github.com:idl/SB2 into dev

* 'jgdev' of github.com:idl/SBA3:
  Add main.js