add resources and try to make js work