Small js fixes.