Improved torrentsearch

It seems to be okei, only thing that bugs me is the empty string that is returned if you dont find anything. I i have tried to catch it various ways to stop the function from running and display a error message, but i cant seem to get it to work, even tho the js its self is correct.