Clean up JS mess