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
Merge pull request #6 from lihe1314/master

Update main.js