Little improvement using categories and add function isGroovyObj in js