Update serialize.js

Ooops, This fixes tests