[js] remove unused code, moar