sample js work