Using Javascript to start a function on spark core

I moved a post to an existing topic: Reading HTML form name in Spark Core programming