js sample