Update main.js
Update main.js

add the undefined in to pack checking, from previous release, if the object contains undefined properties, and the json passed in is an object not string, the pack function will fail. by adding this change will allow the pack & unpack undefined properties
sapienlab/jsonpack