Generalizae node_def to all wrapper functions
Add wrapper for window.alert()