Removed last jsjson function
Added to_dict() function to basemodel