Javascript cleanup.