Fixed broken serialize() function in nestable.js