Added alert(), confirm() and prompt() functions.