More semicolons and js warning fixes