begin js work