xs.js: export_code(): fix to allow use strict
connection.js: add licence information; use strict
Add "use strict" in all files