init js work