change variable char to character

char is a reserved word in js. This was causing problems for me when trying to minify ace editor with yui compress. I believe it is best to change this variable name.