Update script.js

add the emergency layer