Refactors resource.js and show action for repo
Fixes some issues -- still debugging