Updated the javascript somewhat, added missing functions, did minor model updating and removed dependencies built around the structure of the application..