Update fn.js

fix for arguments order in serializing