Minor javascruot fixes