removing newlines, rewriting to underscorejs, rewriting undefineds
fixed log message