Fixes for some but not all minor js warnings