Sql Check Empty String In Javascript