frontend/html: text cursor

Adds cursor support to html frontend.

Note: selection and multi-selection not supported wet.