_removeClass function now also removes the leading space

_removeClass function now also removes the leading space so portrait/landscape flipping won't make the html class tag longer each time.

When flipping between orientations a lot the html tag's class property was getting longer by each space that was added by the custom _addClass function. This is now compensated.