use define() to 'preregister' already loaded 'external' plugin in child context
sampleapp cleanup
added jquery and underscore std libs and externalised mainconfig.js
cleaned up
javascript cleanup