missing variable "backLanguage"

The variable "backLanguage" was missing in case no galleries were
opened. Added an exception for that case. Also deleted all JavaScript
code pertaining to the opening/closing animation of the content
container. Still haven't figured out a way to make it work.