Modification of js-code