Converted scripts to JS

Added "StayInSafe" boolean to control whether humans stay in safe zones