Fix require() in the example

Use require('serialize-javascript') intead of require('serialize').