move js var declarations to the top of the function
checkbox to do fuzzy search