Added a reset button to searchfields, improved js code

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>