Avoid crash when $root is window object- fixes #7
upgraded version number in manifest to 1.7