Minor js corrections