add support for sugarjs fix #107