library js sample