small JS cleanup