make DEAD_FUNCTIONS work on js library functions too