adding some javascript code.