still trying to make js work