added public resource.js files - not working
added js for dynamically showing and hiding fields given resource type