merged pr for https://github.com/wordnik/swagger-js/pull/54