Code style fixes for modules complete and activate travis

There's only a few small fixes left for modules. So lumping the last few together into one file
How about writing `// Use JavaScript "window.open"`?