Edited saves to be sessionsaves

Also added type=text/javascript to javascript calls