edit some javascript code