I will use ```$.trim``` instead of the shim. I will send a new Pull request

Thanks

>  I was referring to the class you are adding to the html element

It was only because localStorage and sessionStorage add a class to the html element.