Grapplet provides a way for running Groovy on an applet, adding extra functionality to JS objects and arrays, for example arrays behave like Java Lists, so all GDK methods available to List and Collection can be used in JS arrays.
Grapplet will automatically look for all tags available in the page that have its language property set to "text/x-groovy". This was inspired by a post on Dion's blog: Running Ruby in the browser via script type="text/ruby".
Once Grapplet is running on a page, you can evaluate any Groovy script by calling evaluateScript().