Update swagger.js

AJAX requests were not sent if there was no paramType available due to a JavaScript error.
Merge pull request #20 from kevin91nl/master

Update swagger.js