I'm fairly new to Javascript and although I have become familiar with the jQuery library, I still have no idea how to structure my code cleanly.
My current project (http://www.pycmds.org) has risen to about 300 lines of code and although it works, it's basically spaghetti. So I'd appreciate some advice, examples, idioms, etc. on how to refactor my current mess into beautiful, readable code. Thanks, --Chris