Add text-mode to html-mode and java-mode