Add empty string condition to jspgQuery() and remove debug logs