few javascript code to make textarea act more like a code editor