remove $ selector on window

causes error with latest version of angular