Adding javascript code.