varouis minor js fixes