Moved JS within the cfif.