google closure compatibility fix

When minified with google closure, the line: `root.tinycolor = tinycolor` results in an error, because root is undefined. 

This is related to strict mode because putting `"use strict";` at the top gives the same error. 

Using `window` explicitely fixes the issue.