Safari fix

Script now runs in Ninjakit (fixes safari)