Update javascript-functions