convert from jquery.console to katra.console