Added a couple of Javascript files and modified existing ones. The objects now use the "Javascript Class Idiom" posted here: http://stackoverflow.com/a/1114121.