Removing unused JS trash code