Added in emergencies

The js script doesn’t do anything with emergencies yet