Renamed char to ch, avoid Closure Compiler reserved word

Closes #11