Small js fixes