getChar()
added some sample code to the index.html