FIX: return type should be jQuery selector, not chart

Added a bit of Closure-compiler style documentation as well