If you click "load ejs as signed applet", you can find out how it was created with EJS.
Actually, this is one of the examples distributed with EJS package.
There are hundreds of examples.