added missing constant and fixed 2 missing ; in js