Small JS-fixes