Prevent server lookup for device when search field is empty

Refactored bind onclick event on search button to use jqury
Added validation for not empty before subitting a request to server