added shared materials to docs bar and fixed jquery etc
changed code to make deleted materials not show up in user page