fixed crazy JS scope issue, pack members identify themselves and perform actions correctly