Code tidy up of ace editor directive
Get basic cursor updating going on