Remove functions added on window object