Added JSONP support to address issue #26
Fixed trim() method for issue #25