use angular standard window variable