If you're bold enough to switch to server-side JavaScript and move your coding inside the browser, there's a step-by-step tutorial for Erbix at http://www.erbix.com/documentation/tutorial/ that describes how to get started. (disclaimer: I'm affiliated with the project)