anchor.diff:  
   
   <script>
  +
   	// TODO: Port it on separated js
   	setTimeout(function () {
   		var inputNSelects = $('.input-nselect')
  
positive.code: 			})
  			if (initialVal) {
  				selectize.setValue(initialVal)
  				initSelect(initialVal, parseInt(id) + 1, selectInputs)
  			}
  		} else {
  			input.selectize({
  				maxItems: 1,
  				valueField: valueField,
  				labelField: labelField,
  				searchField: labelField,
  				options: options,
  				onChange: function (value) {
  					initSelect(value, parseInt(id) + 1, selectInputs)
  				},
  				onInitialize: function() {
  					if (initialVal) {
  						this.setValue(initialVal)
  						initSelect(initialVal, parseInt(id) + 1, selectInputs)
  					}
  	      }
  			})
  		}
  	}
  </script>
negative.code: 			}
  		})
  	}
  
  	// Function to init an empty input to become a selectize
  	var initSelectize = function (selectInputPosition, selectInputs) {
  		var selectInput = selectInputs[selectInputPosition]
  		var input = $(selectInput).find('.select-nselect')
  		var valueField = $(selectInput).attr('data-value-field')
  		var labelField = $(selectInput).attr('data-label-field')
  		var initialVal = $(input).val()
  		var id = $(selectInput).attr('data-value-id')
  
  		input.selectize({
  			maxItems: 1,
  			valueField: valueField,
  			labelField: labelField,
  			searchField: labelField,
  			options: [],
  			onChange: function (value) {
  				loadOptions(value, parseInt(id) + 1, selectInputs)
  			},
  			onInitialize: function() {
  				if (initialVal) {
  					this.setValue(initialVal)
  					loadOptions(initialVal, parseInt(id) + 1, selectInputs)
  				}
  			}
  		})
  	}
  
  	// Function to update a selectize with correct options
  	var updateSelectize = function (options, selectInputPosition, selectInputs) {
  		var selectInput = selectInputs[selectInputPosition]
  		var input = $(selectInput).find('.select-nselect')
  		var id = $(selectInput).attr('data-value-id')
  		var initialVal = $(input).val()
  
  		var selectize = $(input)[0].selectize
  
  		if (selectize) {
  			selectize.clear()
  			selectize.clearOptions()
  