Add copyright to JavaScript example