Adding javascript code