Assign directive's isolate scope to a global var
Place win resize callback in annonymous function
Add test for window event listener