Add test to see if responseText is a function

This request allows users to specify responseText as a function rather than static text. I believe this will address the request in issue #36 without impacting any other functionality.