added js sample