fixed the order of response.js execution. Thanks @Anthony
Merge pull request #187 from niphlod/issue/response_js_order

fixed the order of response.js execution. Thanks @Anthony