new js_courses query runs much faster