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.
Merge pull request #1841 from Bakual/patch-2

Properly declare variables in mediaboxAdv.js