search now works with js