Update has.js

Added condition to extract plugin config