add initialization of namespace object to groovy plugin js