Changed event handling in js files