minor js fixes v5