Added the JavaScript at the end of the page to allow the condition field be after the current field in the DOM structure