Fixes in JS examples