bower fix, use window angular object