fixed err in JS callback for no args; added anon callbacks to Java and added workaround for motionbank/piecemaker2/issue/48 to both Java and JS; updated some examples