fixed JS footer show/hide function, working on elasticsearch functionality