[js] remove redundant semicolons