Minor JS fixes
Updated examples