chore(plugins): replace window with angular $window