Chaged jsonlite_token_compare to memcmp
Improved memory allocation