checking in js fixes