Update methods.js

Change $el.val().trim() to $.trim($el.val()) to make it works in IE8
Merge pull request #36 from saparicio/master

Use jQuery trim function instead of the one from the browser