You would create a Placeholder body code with a HTML form element that had an input filed that you give an id.
After that it would be a case of changing the HTML in the following; http://www.mysamplecode.com/2012/04/...-tutorial.html
The JavaScript would go in the code head.

Acorn