Update of javascript code