Fixes in javascript.