trying to make js work