in reply to js variables to perl?

Give a look at OpenThought. Cool stuff.