Javascript: serialize functions