jquery plugin; fromObject not working correctly, check later