add code snippets for using JNI.jsm