Declare variables

The mediaboxAdvanced uses some variables which are not declared properly: container and closeLink. This can cause issues if this are used elsewhere.
In my case container is used as an id in my template which caused issues in IE.