JavaScript path changed