js debugging, clean up galleries controller & views