Added dojo library;Bug fixes galore