Attach semver to the window object

Otherwise Google closure compiler will throw the following error:
ERROR - variable semver is undeclared