groovy methods can now be called from javascript