Text support for CocoonJS

Adds a function, determineFontHeightInPixels, that creates a canvas, draws the text 'gM', and returns its exact height in pixels.

In updateText(), removed old detection of CocoonJS and added in call to determineFontHeightInPixels.