Update JS sample