1) added implicit conversion from JQuery to JCanvas (no need to call asInstanceOf), 2) changed drawGraph to use single literal object & direct call to literal.applyDynamicNamed method