cleanup of js