Python Name Model Is Not Defined In Javascript