fixed js_template var when there are no results