Allow \n to create line breaks

In order to be a drop in replacement for javascript's alert function, you really need to allow /n in create line breaks. This change allows that.