use collapsed panel to show resource details

Please  play around with latest 3 commits.
A bit unsure, but jQuery file has not loaded yet when calling $().