Question: referenceerror nouislider is not defined?
Answer: The reason for the error message is because you're trying to run the noUiSlider function at the end of the head section, but you don't include those files until after the body (if they get included at all). You can't run that function before the files that define it have been included.