corrected order of arguments
changed from ajax search to normal search
adjusted tests to changed search
Merge pull request #9 from kokangit/master

improved searching