The missing commit for the issue #58 only in swagger.js

@fehgui: This is a #58 related. Provides the missing commit only for the swagger.js. Please merge it once again, because the merge of #58 had no efect, as I cleaned up its commit before you merged it.