Put this in head section of document, note that chat will only work on hosts you have allowed in list below. This code will also include jquery library, if you're using it, add and nojquery to script SRC.