Moved tab contents into separate partials.
Tidy up. Removing old files. Adding license to all js files. Encapsulating everything in anonymous functions. Fixed JSLint warning.