sample main.js updates

Additional documentation, license inclusion, additon of 'use strict'
directive.
Add use strict