JS: removing unused