Update safify.js

in case htm is undefined