fixed latest version bug part two

js stuff