Cleaned up jsmn and ticket stuff