Update js sample