Added logic for selectize.js and angular.js