Several changes in JS.