CYB-368 - Gallery: browser back button in item detail view doesn't return to gallery main

https://jira.ets.berkeley.edu/jira/browse/CYB-368
CYB-368 - Gallery: back button - Add JS Docs & resolve comments