got most of the first crack of js working. Just some bugs, polishing and refactoring to do