Use strict mode in JS
Fix ad-hoc tests and examples to accommodate Picture API changes