Dont autoreload if user is searching

Fixes #340
minor javascript fixes