Dropped debug statement
Some JS fixes