allow chaining on clear method. also a test
adding minified version
Merge pull request #6 from jlvallelonga/master

allow chaining on clear method. also a test