Removed self invoking function and added changes to specHelper.js