Fixed bug, ajax now sends entire object