fixed the incorrect html

Resolves http://bugs.web2project.net/view.php?id=1382
updated the path to go back and view the object after storing it

resolves http://bugs.web2project.net/view.php?id=1392
corrected the bad javascript

Resolves http://bugs.web2project.net/view.php?id=1381