Part Is Not Defined In Javascript