Cleanup card JS.