UPDATE reg-exp to exclude comments and allow window object