Fixed a bug in the jsvalue conversion. Still have more bugs to get through.