Option to set text in italic on exitInput
Added some javascript functions