Js fixes

small fixes for js target