Moved loadText functions to a directive. First char now highlights properly