Update Clear method

The clear method now removes children for non-canvas and non-webGL
types.

Also removed some whitespace