remote listings and massive JS cleanup