fixed ugly var declaration
better support for Wikia and Bitbucket