ReOrganized JavaScript