Changed main.js to enable secure mode.

Still having strange problems  - seemingly with spacing - that prevents
main.js from working when I type it.